import 'package:fish_redux/fish_redux.dart';

enum EngineerGasResultViewAction {
  action,
  onGetData,
  onTapAddPic,
  onTapPic,
  onSubmit,
  onTapSign,
  onTapResultPic,
  onTapStatus,
  onSave,
  onTapAddGasPic,
  onTapGasPic,
  onTapIdCard,
}

class EngineerGasResultViewActionCreator {
  static Action onAction() {
    return const Action(EngineerGasResultViewAction.action);
  }

  static Action onTapIdCard(type) {
    return Action(EngineerGasResultViewAction.onTapIdCard, payload: type);
  }

  static Action onSave() {
    return const Action(EngineerGasResultViewAction.onSave);
  }

  static Action onTapAddPic() {
    return const Action(EngineerGasResultViewAction.onTapAddPic);
  }

  static Action onTapPic(data) {
    return Action(EngineerGasResultViewAction.onTapPic, payload: data);
  }

  static Action onTapAddGasPic(type) {
    return Action(EngineerGasResultViewAction.onTapAddGasPic, payload: type);
  }

  static Action onTapGasPic(type, data) {
    return Action(EngineerGasResultViewAction.onTapGasPic,
        payload: {'data': data, 'type': type});
  }

  static Action onSubmit(isSave) {
    return Action(EngineerGasResultViewAction.onSubmit, payload: isSave);
  }

  static Action onTapSign() {
    return const Action(EngineerGasResultViewAction.onTapSign);
  }

  static Action onTapResultPic(model, data) {
    return Action(EngineerGasResultViewAction.onTapResultPic,
        payload: {'model': model, 'data': data});
  }

  static Action onGetData(data) {
    return Action(EngineerGasResultViewAction.onGetData, payload: data);
  }

  static Action onTapStatus(data) {
    return Action(EngineerGasResultViewAction.onTapStatus, payload: data);
  }
}
